 function search(){

		document.indexForm.submit();	 
	 }
function trim(val)
 {
	return val.replace(/(\s*$)/g, "");  
}

function checkInfo(){
	if(trim(document.getElementById("name").value)=="")
	{
	  alert("敏感字名称不能为空！");
	  document.getElementById("name").focus();
	  return false;
	}	 
	if(trim(document.getElementById("value").value)=="")
	{
	  alert("替换规则不能为空！");
	  document.getElementById("value").focus();
	  return false;
	}		
	document.addForm.submit();
}

function delOneNews(val){
  if(window.confirm('确认删除吗?')){
 	  window.location.href='/doTradeReg.do?pkid='+val+'&bpm_id=1899'; 
  } 		
} 